
.dmform {
  background-color: @home-bg-color;
  overflow: hidden;

  .dmform-top {
    height: 60px;
    text-align: right;
    padding: 14px 8px;
    background: @table-header-bgcolor;
    border-bottom: 1px solid @base-innerborder-color;

    .dmform-top-close {
      position: absolute;
      display: inline-block;
      right: 5px;
      top: 10px;
      color: @primary-color;
      >i {
        margin: 12px 10px 0 0;
        font-size: 16px;
      }
    }

    >BUTTON {
      margin-right: 5px;
    }
  }

  .dmform-groups {
    overflow: auto;
    margin: 0;
  }

  .dmform-group-title {
    position: relative;
    height: 40px;
    padding: 10px 0;
    margin: 0 15px;
    color: @form-field-readonly-color;
  }

  TABLE.dmform-group {
    width: calc(100% - 20px);
    background: @body-bg-color;
    BORDER-COLLAPSE: collapse;
    border: 1px solid @base-border-color;
    border-radius: 5px;
    margin: 0 10px 10px 10px;

    TH,TD {
      border: 1px solid @form-table-border-color;
      padding: 0;
      padding: 1px;
      height: 34px;
    }
    TH {
      width: 10%;
      text-align: right;
      padding-right: 8px;
      color: rgba(0, 0, 0, 0.6);
      font-weight: normal;
      background: #f5ffff;
      white-space: nowrap;
    }
    TD {
      width: 40%;
    }
    .ant-checkbox-group,
    .ant-radio-group {
      padding: 4px 10px;
    }
    .dmform-listeditor,
    .ant-select-selection,
    .ant-input {
      border-radius: 0;
      border: 0;
      margin: 0;
      color: rgba(0, 0, 0, 0.9);
    }
    .ant-select.ant-input-disabled,
    .ant-input.ant-input-disabled {
      background: transparent;
      color: rgba(0, 0, 0, 0.6);
    }
  }
  DIV.dmform-group {
    background-color: @body-bg-color;
    border: 1px solid @base-innerborder-color;
    margin: 0 10px;
    padding: 15px 0;
    border-radius: 5px;
  }

  .dmform-group.dmform-group-scroll {
    margin-right: 10px;
    overflow: auto;
  }

  .dmform-help {
    position: absolute;
    top: 5px;
    right: 0px;
  }

  // 表单中的TABS
  .ant-tabs-bar.ant-tabs-top-bar{
    margin-bottom: 0;
    border-bottom: 1px solid transparent;
    margin-left: 5px;
  }
  .ant-tabs-bar.ant-tabs-right-bar {
    border-left: 1px solid transparent;

    .ant-tabs-nav-container {

    }
  }
  .ant-tabs-content {
    .dmform-group {
      margin: 0;
    }
  }

  .dmform-bottom {
    background: transparent;
    border-bottom: 1px solid transparent;
    text-align: center;
    padding: 0;
    margin-top: 10px;
  }

  .dmform-msg {
    position: absolute;
    color: @global-darkred;
    margin: 15px;
  }

  .tree-editor {
    border: 1px solid @form-field-border-color;
    border-radius: 4px;
    padding: 2px 0;
  }

  .list-tags {
    .ant-tag {
      border-color: @form-field-border-color;
      background: @form-field-readonly-bgcolor;
      color: @form-field-readonly-color;
      font-size: 14px;
    }
  }

  .el-tabs__header.is-left {
    margin-right: 0;
    //background-color: @body-bg-color;
    .el-tabs__nav-wrap::after {
      background-color: @base-innerborder-color;
      width: 1px;
    }
  }
}

.dmform.dmform-right {
  //max-width: 830px;

  .dmform-group {
    margin-bottom: 0;
  }
}

.dmform.dmform-slide {
  .ant-tabs-content {
    .dmform-group {
      margin: 0 10px;
    }
  }
}

.ant-input.dmform-listeditor-dialog {
  position: relative;
  vertical-align: bottom;
  min-height: auto;
  max-height: none;
  cursor: pointer;
  padding: 1px 5px;
}
.ant-input .dmform-listeditor,
.dmform-listeditor.no-border {
  border: 0;
  border-radius: 0;
  padding: 0;
  line-height: 26px;
  min-height: auto;
  max-height: none;
  overflow: auto;
  cursor: pointer;
  background: transparent;
}
.dmform-listeditor {
  position: relative;
  border: 1px solid @form-field-border-color;
  border-radius: 4px;
  padding: 0px 10px 1px 10px;
  line-height: 30px;
  min-height: 32px;
  max-height: 200px;
  overflow: auto;
  cursor: pointer;
  background: @body-bg-color;

  ._clear {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 14px;
    display: none;
  }
  .ant-tag {
    font-size: 14px;
    margin: 0 2px 0 2px;
    border-radius: 2px;
  }
  .ant-tag._addtag {
    border-style: dashed;
    cursor: pointer;
    padding: 0 5px;
  }
  ._group {
    color: @global-gray;
  }
}
.dmform-listeditor:hover {
  ._clear {
    display: inline-block;
  }
}

.dmform-treecascader.dmform-treecascader-m {
  ._result {
    height: 100px;
  }
}
.dmform-treecascader {
  position: relative;
  height: 100%;

  ._result {
    border: 1px solid @base-innerborder-color;
    border-radius: 3px;
    padding: 5px 10px;
    margin: 0 1px 6px 1px;
    height: 38px;
    overflow: auto;

    ._group {
      color: @global-gray;
    }
    .ant-tag {
      margin: 2px;
      padding: 0 2px;
      border-radius: 2px;
      font-size: 14px;
    }
    ._nodata {
      color: @global-gray;
    }
  }

  >TABLE {
    height: 100%;
    width: 100%;
    border: 0;

    TD {
      height: 100%;
      border: 0;
    }
  }

  ._panel1 {
    margin-right: 3px;
  }
  ._panel2 {
    margin-left: 3px;
  }
  ._panel1, ._panel2 {
    border: 1px solid @base-innerborder-color;
    border-radius: 3px;
    padding: 1px 0;
    height: 100%;

    ._panel_header {
      height: 32px;
      padding: 5px 10px;
      line-height: 20px;
      white-space: nowrap;
      overflow: hidden;
      border-bottom: 1px solid @base-innerborder-color;
      color: @form-field-readonly-color;
    }
    .ant-tabs-bar.ant-tabs-top-bar {
      margin: 0;
    }
    .el-tree {
      margin: 1px;
    }
  }
  ._btns_left {
    position: absolute;
    left: 0;
    top: 15px;

    >BUTTON {
      margin: 0 5px 10px 0;
    }
  }
  ._btns {
    text-align: right;

    >BUTTON {
      margin: 0 0 10px 5px;
    }
  }
}

.dmform-modal.dmform-modal-onlybody {
  .ant-modal-confirm-btns {
    display: none;
  }
}
.dmform-modal {
  z-index: 9999;

  .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {
    margin-left: 0;
  }

  .ant-modal-confirm-content {
    margin: 0;
  }

  .anticon.anticon-question-circle,
  .anticon.anticon-info-circle {
    display: none;
  }
  .ant-modal-content {
    padding: 15px;

    .ant-modal-body {
      padding: 0;
    }
    .ant-modal-footer {
      margin-top: 10px;
      padding: 0;
    }
    .ant-modal-confirm-btns {
      //display: none;
      margin-top: 10px;
    }
  }

}

.cocupload.exceed {
  .el-upload {
    display: none;
  }
}
